package com.lxc.graduation.controller;

import com.lxc.graduation.service.DocumentRecommendService;
import com.lxc.graduation.utils.JsonData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: ck
 * @Description:
 * @Date: Create in 14:24 2021/3/4
 */
@RestController
@RequestMapping("/api/pub/v1/document_recommend")
public class DocumentRecommendController {
    @Autowired
    private DocumentRecommendService documentRecommendService;
    @RequestMapping("findByDocId")
    public JsonData findByDocId(Integer id)
    {
        return JsonData.buildSuccess(documentRecommendService.findByDocId(id));
    }


}
